package com.enterpriseDigitalPlatform.exception;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

@Data
@NoArgsConstructor
@AllArgsConstructor
public class ServiceException extends RuntimeException {
    private String message;

    public ServiceException(ServiceExceptionEnum serviceExceptionEnum) {
        this.message = serviceExceptionEnum.getMessage();
    }
}
